package com.xkdx.guangguang.fragment.my.pay;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;
import com.xkdx.guangguang.module.statics.IConstants;

public class PayAction extends AbsAction {
	String  userID,LoginToken, productsID,productNum;

	public PayAction(String LoginToken, String productsID,String userID,String productNum) {
		this.url=IConstants.INFO_URL;
		this.userID=userID;
		this.LoginToken = LoginToken;
		this.productsID = productsID;
		this.productNum = productNum;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("UserID", userID);
		map.put("ProductID", productsID);
		map.put("LoginToken", LoginToken);
		map.put("ProductsNum", productNum);
		String json = constructJson(map);
		Parameter parameter = new Parameter("payChapterAction", "payListCreate",
				json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}

}
